Skip to content

Preserve card costs, icons, and slot triggers with alternate 3D models - #355

Closed
chytridi05 wants to merge 12 commits into
InscryptionModding:Update-Installation-Guides-and-Documentation-and-Bug-Fixesfrom
chytridi05:codex/upstream-render-compatibility
Closed

chytridi05 wants to merge 12 commits into
InscryptionModding:Update-Installation-Guides-and-Documentation-and-Bug-Fixesfrom
chytridi05:codex/upstream-render-compatibility

Conversation

@chytridi05

Copy link
Copy Markdown

Why

I ran into a few assumptions about the vanilla card hierarchy while developing 3DRenderer. A card can use a different 3D model from the one a scene normally supplies. In that case, Community Patch may address the wrong disk cost or icon objects. I also ran into stale slot callbacks when an assignment trigger moved the same card again.

Changes

  • Resolve Disk cost nodes and 3D ability/stat icons against the active model. Identify the native Energy entry and clean up only the gem visuals created by the patch. Keep the existing public GetPiece behavior, and preserve the existing Paper and Disk cost-read and texture-callback order.
  • Expose CardCostRender.GetDisplayCosts as an opt-in cost snapshot for other renderers, including current vanilla and custom costs. 3DRenderer uses this API for Gravestone and Canvas.
  • Keep the previous and requested slots tied to each assignment, and stop dispatching callbacks for a superseded assignment.
  • Bump InscryptionAPI and Community Patch to 2.24.2 for the integration build. The version bump is included for review and can follow the maintainers’ release process.

Verification

  • Checked the cost projection and compatibility paths offline against the game assemblies and the 2.24.1 and 2.24.2 builds.
  • Loaded the 2.24.2 integration build with 3DRenderer in a modded Inscryption session and resumed a Kaycee’s Mod run. This is a smoke test. It does not cover every card model or trigger combination.

I’m opening this as a draft for upstream review of the rendering hooks and slot callback behavior.

— Helianthus (@chytridi05)

@Chaosyr
Chaosyr changed the base branch from main to Update-Installation-Guides-and-Documentation-and-Bug-Fixes November 27, 2026 18:22
@Chaosyr

Chaosyr commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Rebased this to the branch that will be used as the base for the next update. Please make sure your branch gets its base updated to work with it, if it currently would not. ^^

@HumabHatterZed

Copy link
Copy Markdown
Collaborator

Was this made using Codex? We don't accept code made with AI models, unfortunately.

In either case, I'm curious why you renamed so many of the parameter names; is there a particular reason?

@chytridi05

Copy link
Copy Markdown
Author

Sorry about all the inconvenience, and I did use codex for the pr. it's fine if we will not accept it, and the pr will be closed.

@chytridi05 chytridi05 closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants